package com.example.gpstracking.service;

import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.location.Criteria;
import android.location.LocationListener;
import android.location.LocationManager;

public class StarkGPSHelper {
	protected static String SINGLE_LOCATION_UPDATE_ACTION = "";
	protected PendingIntent singleUpdateUi;
	protected Context context;
	protected Criteria criteria;
	protected LocationManager locationManager;
	protected LocationListener listener;
	//
	//
	public StarkGPSHelper(Context context){
		this.context = context;
		locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
		//coarse accuary is specifed here fasted as posible result
		criteria = new Criteria();
		criteria.setAccuracy(Criteria.ACCURACY_LOW);
		//
		//Construct intent that will be broadcast by onshot location update
		Intent updateIntent = new Intent(SINGLE_LOCATION_UPDATE_ACTION);
		singleUpdateUi = PendingIntent.getBroadcast(context, 0, updateIntent, PendingIntent.FLAG_UPDATE_CURRENT);
	}
	/**
	 * this method will get the last best location 
	 */
	

}
